#pragma once

#include "AVPlay.h"

class CPortAlloctor:public IPortAlloctor
{
public:
	CPortAlloctor();
	~CPortAlloctor();

	virtual void*	alloc_signal();
	virtual void	set_signal( void* _signal );
	virtual void	wait_signal( void* _signal );
	virtual void	free_signal( void* _signal );

	virtual void*	alloc_mutex();
	virtual void	lock_mutex( void* _mutex );
	virtual void	unlock_mutex( void* _mutex );
	virtual void	free_mutex( void* _mutex );

	virtual bool	create_thread( int (*thread_func)(void*), void* param );
};
